﻿using System;
using Freshbooks.Client.Demo.Properties;
using Freshbooks.Library;

namespace Freshbooks.Client.Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            FreshbooksApi api = new FreshbooksApi(Settings.Default.URL, Settings.Default.DEV);
            api.UseLegacyToken(Settings.Default.TOKEN);

            var self = api.Staff.Current().Staff;

            Console.WriteLine("Current user: {0} {1}", self.FirstName, self.LastName);
        }
    }
}
